How to solve one dimension heat equation by separation of variables